#pragma once

#include <QWidget>
#include "networkmanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class UserRegisterWindow; }
QT_END_NAMESPACE

class UserRegisterWindow : public QWidget
{
    Q_OBJECT

public:
    UserRegisterWindow(QWidget *parent = nullptr);
    ~UserRegisterWindow();

private slots:
    void on_registerButton_clicked();
    void on_resetButton_clicked();

    void handleRegisterResponse(const QJsonObject &response);

private:
    Ui::UserRegisterWindow *userregisterwindowUi;
    NetworkManager* networkManager;
};
